package sg.edu.nus.iss.billing.gui.subscription;

import sg.edu.nus.iss.billing.gui.MainFrame;

public class UIConstants {

	public static final int CONTENT_W = (int)(MainFrame.WIDTH * 0.80);
	public static final int CONTENT_H = 600;//MainFrame.HEIGHT - 250;

	public static final int INFO_LBL_H = 20;

	public static final int LEFT_MARGIN = 10;
	public static final int TOP_MARGIN = 10;
	public static final int TXT_W = 160;
	public static final int TXT_H = 20;
	public static final int BTN_W = 100;
	public static final int BTN_H = 20;
	public static final int COL_GAP = 15;
	public static final int ROW_GAP = 5;

	public static int getXPosition(int col) {
		return getXPosition(col, 0);
	}

	public static int getYPosition(int row) {
		return getYPosition(row, 0);
	}

	public static int getXPosition(int col, int skip) {
		return (col - 1) * (TXT_W + COL_GAP) + LEFT_MARGIN + skip;
	}

	public static int getYPosition(int row, int skip) {
		return (row - 1) * (TXT_H + ROW_GAP) + TOP_MARGIN + skip;
	}

}
